package com.ruoyi.supermarket.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出货管理对象 sale
 * 
 * @author wzy
 * @date 2024-07-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出货id */
    @Excel(name = "出货id")
    private Long saleId;

    /** 商品外键id */
    @Excel(name = "商品外键id")
    private Long cid;

    /** 出货数量 */
    @Excel(name = "出货数量")
    private Long saleCount;

    /** 出货价格 */
    @Excel(name = "出货价格")
    private Long salePrice;

    /** 出货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleTime;

    /** 删除标记 */
    private Long deleted;

    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setSaleCount(Long saleCount) 
    {
        this.saleCount = saleCount;
    }

    public Long getSaleCount() 
    {
        return saleCount;
    }
    public void setSalePrice(Long salePrice) 
    {
        this.salePrice = salePrice;
    }

    public Long getSalePrice() 
    {
        return salePrice;
    }
    public void setSaleTime(Date saleTime) 
    {
        this.saleTime = saleTime;
    }

    public Date getSaleTime() 
    {
        return saleTime;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("cid", getCid())
            .append("saleCount", getSaleCount())
            .append("salePrice", getSalePrice())
            .append("saleTime", getSaleTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
